# 算术运算
# + - * / //(整除 地板除) % **(幂)
# 比较运算
# == > < >= <= !=
# 赋值运算
# = +=(自加) -= *= /= //= %= **=
# 逻辑运算
# and or not
print(1 and 9)  # 都真取后面的
print(1 and 0)  # 一真一假取假
print(0 and False)  # 都假取前
print(1 and 3 and 5 and 6 and 10)
print(1 or 9)  # 都真取后前的
print(1 or 0)  # 一真一假取真
print(0 or False)  # 都假取后

# 优先级
# ()>not>and>or
print(9 and 1 or not False and 8 or 0 and 7 and False)
# 成员运算
# in not in
s ='abcdef'
print( 'e' in s)
print('sw' not in s)